/**
 * Copyright © 2017 陈锦韬  All rights reserved.
 * 
 * @Package: com.application.net 
 * @author: Administrator   
 * @date: 2017年12月18日 下午4:56:22
 */
package com.application.handle;

import org.springframework.stereotype.Component;

import com.application.common.BaseLogger;
import com.application.iface.IHandle;
import com.application.iface.IMessage;
import com.application.iface.IPacket;
import com.application.net.TcpAdapter;

/**
 * @className: DefaultHandle 
 * @author: Administrator
 * @Description: 默认处理
 * @date: 2017年12月18日 下午4:56:22
 */
@Component("DefaultHandle")
public class DefaultHandle implements IHandle {

	/* (non-Javadoc)
	 * @see com.application.iface.IHandle#handle(com.application.iface.IPacket, com.application.iface.IMessage)
	 */
	@Override
	public boolean handle(IPacket pack, IMessage message) throws Exception {
		TcpAdapter.sendResponse(pack.getData( message));
		BaseLogger.writeErrorLog("请设置处理类");
		return false;
	}

}
